# -*-coding:utf-8-*-
# 用于登录页元素定位
from Apiautomation.UI.UIAutoDemo.models import Url
from poium import Page, Element
from page_objects import PageObject,PageElement

class BaiduPage(PageObject):
# class login(Page):
    """ 项目用户登录、退出定位元素"""
    # url
    url = Url.baseUrl

    # 示例
    # search_input_loc = Element(id_='kw')
    # search_button_loc = Element(id_='su')

    #
    # # 操作方法封装
    # def search_input(self, key):
    #     self.search_input_loc.clear()
    #     self.search_input_loc.send_keys(key)
    #
    # def search_button(self):
    #     self.search_button_loc.click()


    search_box = PageElement(id_="kw")
    search_button = PageElement(id_="su")